package object;

import java.awt.Graphics2D;
import java.awt.Shape;


/**
 *
 * @author BBXP
 */
public abstract class VisualObject {
    protected int x;
    protected int y;
    protected boolean isSelected;
    protected Shape myShape;
    protected Shape mySelectedShadow;
    protected int width;
    protected int height;
    protected static final int SHAPE_FACE = 0;
    protected static final int SHAPE_SELECTED = 1;
    protected static final int SHAPE_HP = 2;
    protected static final int SELECTED_OFFSET = 3;

    public VisualObject(){
        x = 0;
        y = 0;
        isSelected = false;
    }
    public VisualObject(int x, int y, int width, int height){
        this();
        this.width = width;
        this.height = height;
        this.x = x;
        this.y = y;
    }

    public abstract void draw(Graphics2D g);
    public abstract Shape[] constructShape();
}
